import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        appBar: AppBar(
          title: const Text("你好flutter"),
        ),
        body: const MyApp(),
      ),
    ),
  );
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return Align(
      alignment: Alignment.center,
      child: Column(
        children: [
          SizedBox(
            width: 200,
            height: 80,
            child: ElevatedButton(
              onPressed: () {},
              style: ButtonStyle(
                elevation: MaterialStateProperty.all(20),
                shape: MaterialStateProperty.all(
                  RoundedRectangleBorder(
                    borderRadius: BorderRadius.circular(40),
                  ),
                ),
              ),
              child: const Text("修改圆角"),
            ),
          ),
          SizedBox(
            height: 100,
            child: ElevatedButton(
              onPressed: () {},
              style: ButtonStyle(
                elevation: MaterialStateProperty.all(20),
                shape: MaterialStateProperty.all(
                  const CircleBorder(
                    side: BorderSide(color: Colors.black, width: 1),
                  ),
                ),
              ),
              child: const Text("修改圆角"),
            ),
          ),
          OutlinedButton(
            onPressed: () {},
            style: ButtonStyle(
              side: MaterialStateProperty.all(
                const BorderSide(width: 2, color: Colors.blue),
              ),
            ),
            child: const Text("圆形"),
          )
        ],
      ),
    );
  }
}
